<?php
if(!defined('INEZCMS')){
	exit('Access Denied');
}

$data["status"]=0;


$voteid=intval($_GET["voteid"]);
if(empty($voteid)){
    error_html('页面不存在');
   exit; 
}
$todate=date("Y-m-d");
$voteinfo = $ezhand->select('vote_subject','*',"enabled=1 and  subjectid=".$voteid);
if(empty($voteinfo)){

    error_html('页面不存在');
   exit; 
        
}

$voteoption = $ezhand->select_all('vote_option','*',' subjectid='.$voteid.' order by optionid ');

$votedatatemp = $ezhand->select_all('vote_data','count(*) as num,optionid',' subjectid='.$voteid.' group by optionid');

$votedata=array();
while(list($k,$v)=each($votedatatemp)){
    $oid=$v["optionid"];
    $votedata[$oid]=$v["num"];
    
}



$MainNav="index";

?>